﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRegistrarMaterial.aspx.cs" Inherits="SISLOG.Web.frmRegistrarMaterial" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="FormView1" runat="server" 
        DataSourceID="ObjectDataSourceRegistrarMaterial" DefaultMode="Insert">
        <EditItemTemplate>
            idMaterial:
            <asp:TextBox ID="idMaterialTextBox" runat="server" 
                Text='<%# Bind("idMaterial") %>' />
            <br />
            descripcion:
            <asp:TextBox ID="descripcionTextBox" runat="server" 
                Text='<%# Bind("descripcion") %>' />
            <br />
            idProveedor:
            <asp:TextBox ID="idProveedorTextBox" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            fechaIngreso:
            <asp:TextBox ID="fechaIngresoTextBox" runat="server" 
                Text='<%# Bind("fechaIngreso") %>' />
            <br />
            stockInicial:
            <asp:TextBox ID="stockInicialTextBox" runat="server" 
                Text='<%# Bind("stockInicial") %>' />
            <br />
            stockFinal:
            <asp:TextBox ID="stockFinalTextBox" runat="server" 
                Text='<%# Bind("stockFinal") %>' />
            <br />
            puntoReorden:
            <asp:TextBox ID="puntoReordenTextBox" runat="server" 
                Text='<%# Bind("puntoReorden") %>' />
            <br />
            Proveedor:
            <asp:TextBox ID="ProveedorTextBox" runat="server" 
                Text='<%# Bind("Proveedor") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                CommandName="Update" Text="Actualizar" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </EditItemTemplate>
        <InsertItemTemplate>
            idMaterial:
            <asp:TextBox ID="idMaterialTextBox" runat="server" 
                Text='<%# Bind("idMaterial") %>' />
            <br />
            descripcion:
            <asp:TextBox ID="descripcionTextBox" runat="server" 
                Text='<%# Bind("descripcion") %>' />
            <br />
            idProveedor:
            <asp:TextBox ID="idProveedorTextBox" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            fechaIngreso:
            <asp:TextBox ID="fechaIngresoTextBox" runat="server" 
                Text='<%# Bind("fechaIngreso", "{0}") %>' />
            <br />
            stockInicial:
            <asp:TextBox ID="stockInicialTextBox" runat="server" 
                Text='<%# Bind("stockInicial") %>' />
            <br />
            stockFinal:
            <asp:TextBox ID="stockFinalTextBox" runat="server" 
                Text='<%# Bind("stockFinal") %>' />
            <br />
            puntoReorden:
            <asp:TextBox ID="puntoReordenTextBox" runat="server" 
                Text='<%# Bind("puntoReorden") %>' />
            <br />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insertar" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </InsertItemTemplate>
        <ItemTemplate>
            idMaterial:
            <asp:Label ID="idMaterialLabel" runat="server" 
                Text='<%# Bind("idMaterial") %>' />
            <br />
            descripcion:
            <asp:Label ID="descripcionLabel" runat="server" 
                Text='<%# Bind("descripcion") %>' />
            <br />
            idProveedor:
            <asp:Label ID="idProveedorLabel" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            fechaIngreso:
            <asp:Label ID="fechaIngresoLabel" runat="server" 
                Text='<%# Bind("fechaIngreso") %>' />
            <br />
            stockInicial:
            <asp:Label ID="stockInicialLabel" runat="server" 
                Text='<%# Bind("stockInicial") %>' />
            <br />
            stockFinal:
            <asp:Label ID="stockFinalLabel" runat="server" 
                Text='<%# Bind("stockFinal") %>' />
            <br />
            puntoReorden:
            <asp:Label ID="puntoReordenLabel" runat="server" 
                Text='<%# Bind("puntoReorden") %>' />
            <br />
            Proveedor:
            <asp:Label ID="ProveedorLabel" runat="server" Text='<%# Bind("Proveedor") %>' />
            <br />
            <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
                CommandName="Edit" Text="Editar" />
            &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                CommandName="New" Text="Nuevo" />
        </ItemTemplate>
    </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSourceRegistrarMaterial" runat="server" 
        DataObjectTypeName="SISLOG.BusinessEntities.Material" 
        InsertMethod="RegistrarMaterial" 
        onobjectcreating="ObjectDataSourceRegistrarMaterial_ObjectCreating" 
        SelectMethod="GetAllFromMaterial" TypeName="SISLOG.BusinessLogic.MaterialBL" 
        UpdateMethod="RegistrarMaterial">
    </asp:ObjectDataSource>
</asp:Content>
